package com.smartleanx.module.hrm.controller.admin.payroll.vo;

import com.smartleanx.module.hrm.service.payroll.bo.PayrollDetailFieldSaveBO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 薪资详情新增/修改 Request VO")
@Data
public class PayrollDetailSaveReqVO {

    @Schema(description = "薪资月编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "薪资月编号不能为空")
    private Long payrollId;

    @Schema(description = "字段数据列表")
    @NotEmpty(message = "字段数据列表不能为空")
    private List<List<PayrollDetailFieldSaveBO>> datas;
}